.class Lcom/waiqin365/lightapp/im/activity/bv;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/im/activity/bu;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/activity/bu;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/activity/bv;->a:Lcom/waiqin365/lightapp/im/activity/bu;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bv;->a:Lcom/waiqin365/lightapp/im/activity/bu;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bu;->b:Lcom/waiqin365/compons/view/a;

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/a;->dismiss()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bv;->a:Lcom/waiqin365/lightapp/im/activity/bu;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bu;->c:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->e(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Lcom/waiqin365/lightapp/im/activity/cn;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/activity/cn;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bv;->a:Lcom/waiqin365/lightapp/im/activity/bu;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bu;->c:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/bv;->a:Lcom/waiqin365/lightapp/im/activity/bu;

    iget-object v1, v1, Lcom/waiqin365/lightapp/im/activity/bu;->c:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->f(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Lcom/hyphenate/chat/EMGroup;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMGroup;->getGroupName()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->a(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;Ljava/lang/String;)Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bv;->a:Lcom/waiqin365/lightapp/im/activity/bu;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bu;->c:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/bv;->a:Lcom/waiqin365/lightapp/im/activity/bu;

    iget-object v1, v1, Lcom/waiqin365/lightapp/im/activity/bu;->c:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->d(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->a(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;I)I

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bv;->a:Lcom/waiqin365/lightapp/im/activity/bu;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bu;->c:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->h(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Landroid/widget/TextView;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/bv;->a:Lcom/waiqin365/lightapp/im/activity/bu;

    iget-object v2, v2, Lcom/waiqin365/lightapp/im/activity/bu;->c:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->g(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    sget-object v0, Lcom/hyphenate/chat/EMMessage$Type;->CMD:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-static {v0}, Lcom/hyphenate/chat/EMMessage;->createSendMessage(Lcom/hyphenate/chat/EMMessage$Type;)Lcom/hyphenate/chat/EMMessage;

    move-result-object v0

    sget-object v1, Lcom/hyphenate/chat/EMMessage$ChatType;->GroupChat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V

    const-string/jumbo v1, "DelMembers"

    new-instance v2, Lcom/hyphenate/chat/EMCmdMessageBody;

    invoke-direct {v2, v1}, Lcom/hyphenate/chat/EMCmdMessageBody;-><init>(Ljava/lang/String;)V

    new-instance v1, Ljava/util/Date;

    invoke-direct {v1}, Ljava/util/Date;-><init>()V

    invoke-virtual {v1}, Ljava/util/Date;->getTime()J

    move-result-wide v4

    invoke-virtual {v0, v4, v5}, Lcom/hyphenate/chat/EMMessage;->setMsgTime(J)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/bv;->a:Lcom/waiqin365/lightapp/im/activity/bu;

    iget-object v1, v1, Lcom/waiqin365/lightapp/im/activity/bu;->c:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->c(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->setReceipt(Ljava/lang/String;)V

    const-string/jumbo v1, "groupId"

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/bv;->a:Lcom/waiqin365/lightapp/im/activity/bu;

    iget-object v3, v3, Lcom/waiqin365/lightapp/im/activity/bu;->c:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->c(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v1, v3}, Lcom/hyphenate/chat/EMMessage;->setAttribute(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v2}, Lcom/hyphenate/chat/EMMessage;->addBody(Lcom/hyphenate/chat/EMMessageBody;)V

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMClient;->chatManager()Lcom/hyphenate/chat/EMChatManager;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/hyphenate/chat/EMChatManager;->sendMessage(Lcom/hyphenate/chat/EMMessage;)V

    return-void
.end method
